package com.ftf.tp.blog.infrastructure.converter;

import com.ftf.tp.blog.domain.article.dos.ArticleCommentDO;
import com.ftf.tp.blog.infrastructure.mapper.pos.ArticleCommentPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author tanghao
 * @date 2022/7/29
 */
@Mapper
public interface CommentConverter {

    CommentConverter INSTANCE = Mappers.getMapper(CommentConverter.class);

    ArticleCommentPO convert(ArticleCommentDO articleCommentDO);

    ArticleCommentDO convert(ArticleCommentPO articleCommentPO);
}

